package com.syedu.day06.v2;

/**
 * description：用户类
 * @author Administrator
 * @date 2022/3/15 14:34
 */
public class User {
    String username;
    String password;

    //一个用户可能存在多个地址
    Address[] addresses;

    public User() {

    }

    public User(String _username, String _password) {
        username = _username;
        password = _password;
    }

    public User(String _username, String _password, Address[] _addresses) {
        username = _username;
        password = _password;
        addresses = _addresses;
    }

    /**
     * 注册
     */
    public void register(){
        System.out.println("用户注册...");
    }

    /**
     * 登录
     */
    public void login(){
        System.out.println("用户登录...");
    }
}